TQ3AttributeCopyInheritMethod
You can define an attribute inheritance method to copy attributes during inheritance.
typedef TQ3Status (*TQ3AttributeCopyInheritMethod) ( const void *fromInternalAttribute, void *toInternalAttribute);
fromInternalAttribute
- A pointer to the attribute data associated with an attribute having your custom attribute type.
toInternalAttribute
- On entry, a pointer to an uninitialized block of memory large enough to contain the attribute data associated with an attribute having your custom attribute type.
DESCRIPTION
YourTQ3AttributeCopyInheritMethod
function should copy the attribute data pointed to by thefromInternalAttribute
parameter into the location pointed to by thetoInternalAttribute
parameter. This method is called whenever theQ3AttributeSet_Inherit
function is used to copy an attribute of your custom type from one set to another set.You should strive to make your
TQ3AttributeCopyInheritMethod
method as fast as possible. For example, if your custom element contains objects, you should call theQ3Shared_GetReference
function instead of theQ3Object_Duplicate
function.RESULT CODES
YourTQ3AttributeCopyInheritMethod
function should returnkQ3Success
if it is successful andkQ3Failure
otherwise.